package com.ddogring.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ddogring.business.domain.User;

/**
 * @BelongsProject: eshop
 * @BelongsPackage: com.ddogring.business.service
 * @Author: DdogRing
 * @CreateTime: 2023-01-30  11:16
 * @Description: TODO
 * @Version: 1.0
 */
public interface IUserService extends IService<User> {

    /**
     * @description: 校验用户名唯一性
     * @author: DdogRing
     * @date: 2023/1/31 09:43
     * @param: [username]
     * @return: java.lang.String
     **/
    String checkUserNameUnique(String username);

    /**
     * @description: 校验手机号唯一性
     * @author: DdogRing
     * @date: 2023/1/31 09:50
     * @param: [user]
     * @return: java.lang.String
     **/
    String checkPhoneUnique(User user);

    /**
     * @description: 校验邮箱唯一性
     * @author: DdogRing
     * @date: 2023/1/31 09:50
     * @param: [user]
     * @return: java.lang.String
     **/
    String checkEmailUnique(User user);

    /**
     * @description: 绑定
     * @author: DdogRing
     * @date: 2023/1/31 09:56
     * @param: [user]
     * @return: int
     **/
    int bind(User user);
}
